package go_common
type Page struct {
	CurrentPage int `json:"current_page"`
	Total int `json:"total"`
	Data interface{} `json:"data"`
	PageSize int `json:"page_size"`
	LastPage int `json:"last_page"`
}

func GetPage(currentPage int, total int, pageSize int, lastPage int, data interface{})  *Page {
	return &Page{
		CurrentPage: currentPage,
		Total: total,
		PageSize: pageSize,
		LastPage: lastPage,
		Data: data,
	}
}